home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / unix / minix / minix1.msg < prev    next >
Encoding:
Internet Message Format  |  1979-12-31  |  4.8 KB

  1. Path: think!mit-eddie!rutgers!seismo!mcvax!botter!ast
  2. From: ast@botter.cs.vu.nl (Andy Tanenbaum)
  3. Newsgroups: comp.sys.ibm.pc,comp.sys.atari.st,comp.unix.wizards,comp.unix.xenix,comp.sources.d
  4. Subject: MINIX
  5. Message-ID: <1028@botter.cs.vu.nl>
  6. Date: 10 Jan 87 22:33:17 GMT
  7. Reply-To: ast@cs.vu.nl (Andy Tanenbaum)
  8. Distribution: world
  9. Organization: VU Informatica, Amsterdam
  10. Lines: 70
  11. Xref: think comp.sys.ibm.pc:885 comp.sys.atari.st:778 comp.unix.wizards:557 comp.unix.xenix:47 comp.sources.d:117
  12.  
  13. First, I would like to apologize if I over-crossposted.  I haven't posted much
  14. to the net before, so I may have done things wrong.  I was under the impression
  15. that if one sends to multiple groups it cross posts them in such a way that
  16. each reader only gets the message once, even if the reader subscribes to all 
  17. of them.  If I am wrong will somebody please tell me how to do it (by mail).
  18. It is also possible that I messed up.  Furthermore, we were having news and
  19. mail problems at the time, which may have contributed.    It was my intention
  20. that a lot of people see it once, not that a few people see it many times.
  21.  
  22. As to being commercial, that's true I guess, but since I am supplying 50,000
  23. lines of source code without copy protection  for $79, and I don't mind a 
  24. limited amount of copying of the binary and source code, it is not in the same 
  25. league as normal PC software in terms of the owners zealously guarding both 
  26. binaries and sources.  In fact, it is probably somewhat closer to the Free 
  27. Software Foundation's way of doing things (also copyrighted) than to Lotus.  
  28. I assumed (and judging by the response, probably correctly) that there would be
  29. a fair amount of interest.  Sorry if I offended people.  
  30.  
  31. Maybe it would be best to set up comp.os.minix now.  Will everyone who would
  32. want to subscribe to it send me mail.  If there is a sufficient number, I
  33. will ask the local guru how one sets up a new group and try to avoid messing 
  34. that up too.  I will cross post this to various groups, but just stick to 
  35. comp.sys.ibm.pc or comp.os.minix (depending on the reaction) in the future.
  36.  
  37. Several people have asked me questions whose answers may be of general interest,
  38. so I will post them here.
  39.  
  40. Q1: Can you have multiple users on a PC?
  41. A1: In theory yes.  The terminal driver has an array indexed by terminal
  42.     number from 0 to some maximum.  At present that maximum is 1, so you
  43.     have to change a constant and recompile the tty driver.  Also, there
  44.     is no RS232 driver (the deadline had a race with RS232 and the deadline
  45.     won).  Therefore such a driver has to be made, but it is quite simple.
  46.     Most of the hooks and handles you need are already there, for example,
  47.     when it is time to output a character on tty n, the driver calls a
  48.     function pointed to by tty_struct[n].tty_devstart, so each terminal
  49.     can have a different routine to actually output the character. In this
  50.     way you can mix various device types.
  51.  
  52. Q2: How compatible does a machine have to be to run MINIX?
  53. A2: It needs a NEC uD765 chip as floppy disk controller, a Motorola 6845 as
  54.     video controller, etc.  If the hard disk controller is nonstandard, the
  55.     hard disk won't work, but the rest will.  Machines with different I/O
  56.     chips but try to hide this by presenting the same BIOS interface won't
  57.     work.  About a dozen different clones have been tested.  MINIX worked
  58.     without problems on 80% and failed on 20%.
  59.  
  60. Q3: Can you call assembler routines from the MINIX C compiler in order to
  61.     write drivers for new devices?
  62. A3: Yes.  The C compiler uses the standard UNIX calling convention of pushing
  63.     the parameters onto the stack in reverse order, so there is no problem
  64.     writing bits of a program in assembler.  The assembly language accepted
  65.     by the MINIX assembler is identical to that of PC-IX, the "official" IBM
  66.     UNIX system for the PC.  Assembly routines for reading and writing I/O
  67.     ports are present in the file kernel/klib88.s (port_in and port_out).
  68.  
  69. Q4: What do you mean it will sort of run on a 512K machine?
  70. A4: It will boot fine and run ok with 512K, but since it doesn't swap, it
  71.     won't be possible to run a lot of background jobs without running out
  72.     of memory.  Also, if you use make, you may discover that make + cc +
  73.     the various passes that get forked off may not fit in core at once, which
  74.     causes EXECs to fail and make to get an error return.  This can be solved
  75.     by changing the amount of stack space allocated to the compiler passes
  76.     using the chmem utility.  (chmem is functionally the same as in PC-IX,
  77.     which works the same way.)  Reducing the stack allocated to compiler
  78.     passes means that some very large programs may not compile.  With a 640K
  79.     system, files > 50K characters have compiled.  With 512K, that limit may
  80.     be lower.
  81.  
  82. Andy Tanenbaum (minix@cs.vu.nl)
  83.